// DynamicArray.cpp : Defines the entry point for the console application.
//

#include "stdafx.h"
#include <iostream.h>

void main(int argc, char* argv[])
{
	int t;
	cout<<"Please enter an integer:";
	cin>>t;

	int* dynamicArray;

	dynamicArray =  new int[t];

	for(int i = 0; i < t; i++)
	{
		dynamicArray[i] = i;
	}	
	
	for(i = 0; i < t; i++)
	{
		cout<<endl<<dynamicArray[i];	
	}

	for(i = 0; i < t; i++)
	{
		cout<<endl<<*dynamicArray++;	
	}


	printf("Hello World!\n");
	
}

